package com.smile.service.entity.services;

import com.alibaba.fastjson.annotation.JSONField;
import lombok.Data;
import lombok.ToString;

import java.io.Serializable;

@Data
@ToString
public class DrcModeEnterData implements Serializable {

    private static final long serialVersionUID = 1L;

    @JSONField(name = "hsi_frequency")
    private Integer hsiFrequency;

    @JSONField(name = "mqtt_broker")
    private MqttBroker mqttBroker;

    @Data
    public static class MqttBroker{
        @JSONField(name = "address")
        private String address;

        @JSONField(name = "client_id")
        private String clientId;

        @JSONField(name = "enable_tls")
        private Boolean enableTls;

        @JSONField(name = "expire_time")
        private Long expireTime;

        @JSONField(name = "password")
        private String password;

        @JSONField(name = "username")
        private String username;
    }

    @JSONField(name = "osd_frequency")
    private Integer osdFrequency;

}
